import Foundation
@objcMembers open
class FYKycCommitItem: Convertible {
    public var itemCode: String = ""
    public var itemValueType: Int = 1
    public var itemValue: String = ""
    public var image: UIImage?
    public var sort: Int = 0
    public init(code: String, value: String, valueType: Int, sort: Int = 0) {
        self.itemCode = code
        self.itemValue = value
        self.itemValueType = valueType
        self.sort = sort
    }
    required public init() {}
    func isEqual(_ object: Any?) -> Bool {
        guard let obj = object as? FYKycCommitItem else { return false }
        return obj.itemCode == self.itemCode && obj.itemValueType == self.itemValueType && obj.itemValue == self.itemValue
    }
    public func convertKycJson() -> [String: Any] {
        return self.kj.JSONObject().filter({ $0.key != "image" && $0.key != "sort" })
    }
}
